<?php
/**
* 数据库表类 cf_area
* ============================================================================
* * 版权所有 蜘蛛出行 * *
* 网站地址: http://www.dlltrip.com
* ----------------------------------------------------------------------------
* 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
* 使用；不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* Author By: 倪宗锋
* PhpStorm LoginController.php
* Create By 2021/06/02 15:17 $
*/

namespace common\models;

use yii\db\ActiveRecord;

/**
 * 数据库表类 cf_area.
 * @property string $id
 * @property string $area_name
 * @property string $area_addree
 * @property integer $area_type
 * @property string $hotel_ids
 * @property string $update_time
 * @property string $create_time
 * @property integer $delete_flag
 */
class CfArea extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cf_area';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['area_type', 'delete_flag'], 'integer'],
            [['update_time', 'create_time'], 'safe'],
            [['area_name'], 'string', 'max' => 150],
            [['area_addree', 'hotel_ids'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'area_name' => 'Area Name',
            'area_addree' => 'Area Addree',
            'area_type' => 'Area Type',
            'hotel_ids' => 'Hotel Ids',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
            'delete_flag' => 'Delete Flag',
        ];
    }
}
